package overun.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;
import overun.selected.ExcelSelected;
import overun.selected.BaseConverter;

@Data
public class User {


    @ExcelProperty(index = 0, value = "用户姓名")
    @ColumnWidth(20)
    private String nickname;

    @ExcelProperty(index = 1, value = "用户邮箱")
    @ColumnWidth(20)
    private String email;

    /**
     * @ExcelSelected 要和 @ExcelProperty 同时使用, BaseConverter 获取不到值集的key,无法查询
     */
    @ExcelProperty(index = 2, value = "用户性别" , converter = BaseConverter.class)
    @ExcelSelected(keyWord = "gender")
    @ColumnWidth(20)
    private String gender;


}